package com.example.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.sql.Date;
import java.sql.Timestamp;


@Data
@Component
@NoArgsConstructor
@AllArgsConstructor
@TableName("connection_data")
public class Connection {
    @TableId(type = IdType.AUTO)
    int connection_id;
    int send_user_id;
    String send_user_name;
    int receive_user_id;
    String receive_user_name;
    Timestamp beginDate;
    Timestamp endDate;
    String connection_status;
    int duration;
}
